# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年03月08日
"""
from docx import Document
from openpyxl import Workbook

doc = Document("test1.docx")
t0 = doc.tables[0]
workbook = Workbook()
sheet = workbook.active
for i in range(len(t0.rows)):
	list1 = []
	for j in range(len(t0.columns)):
		list1.append(t0.cell(i,j).text)
	sheet.append(list1)

workbook.save("来自word中的表.xlsx")